package com.xgk.boot.module.core.dal.entity.payment;

import com.baomidou.mybatisplus.annotation.*;
import com.xgk.boot.framework.mybatis.core.dataobject.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("customer_credit")
@EqualsAndHashCode(callSuper = true)
public class TemporaryCreditDO extends BaseDO {
    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 客户ID
     */
    @TableField("customer_id")
    private Long customerId;
    /**
     * 授信编码
     */
    @TableField("credit_code")
    private String creditCode;

    /**
     * 授信类型：1-临时授信 2-固定授信 3-循环授信
     */
    @TableField("credit_type")
    private Integer creditType;

    /**
     * 授信金额
     */
    @TableField("credit_amount")
    private BigDecimal creditAmount;

    /**
     * 授信时间
     */
    @TableField("credit_time")
    private Date creditTime;

    /**
     * 授信到期时间
     */
    @TableField("due_time")
    private Date dueTime;

    /**
     * 授信时长(天)
     */
    @TableField("credit_duration")
    private Integer creditDuration;

    /**
     * 授信审核人ID
     */
    @TableField("reviewer_id")
    private Long reviewerId;

    /**
     * 授信审核人姓名
     */
    @TableField("reviewer_name")
    private String reviewerName;

    /**
     * 状态：0-作废 1-待审核 2-待核销 3-已核销 4-过期
     */
    @TableField("status")
    private Integer status;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;
    /**
     * 文件附件地址(Json格式)
     */
    @TableField("attachment")
    private String attachment;
}